package myApp.KnorrAndroid.common;

import myApp.KnorrAndroid.dto.UserDTO;
import myApp.KnorrAndroid.ultils.KnorrUltils;


public class KnorrProfile {
	public static final String KNORR_PROFILE = "KnorrProfile"; 
	private boolean isLogin = false;
	private UserDTO userData = new UserDTO();  
	
	public KnorrProfile(){
		
	}
	
	public UserDTO getUserData(){
		return userData;
	}
	
	public boolean isLogin(){
		return isLogin;
	}
	
	public void setIsLogin(boolean isLogin){
		this.isLogin = isLogin;
	}
	
	public void save(){
		KnorrUltils.saveObject(KnorrInfo.getInstance().getAppContext(), this, KnorrProfile.KNORR_PROFILE);
	}
}
